# Maintainer : Sagar Acharya <sagar@hyperbola.info>

pkgname='stagit'
pkgver=0.9.6
pkgrel=1
pkgdesc='Static site generator for git version control'
arch=('x86_64')
url='https://codemadness.org/stagit.html'
license=('Expat')
depends=('libgit2')
optdepends=('git: scripting functionality')
source=("https://codemadness.org/releases/stagit/${pkgname}-${pkgver}.tar.gz")
sha256sums=('d072f386f3a546ed0341e20f9c2dfd7756a761fab1c40316a96690cb2b3066d0')
sha512sums=('d9f0cdb67ed0e6355f0485e36cc81136d7f21d73a35010faf41f2c967ff462ca948b2b8d2e6ce226a065969636d1ffc5603ef8da2c86598b861bd6c7c2f0d368')

build() {
	cd $pkgname-$pkgver
	make
}

package() {
	cd $pkgname-$pkgver
	make DESTDIR="${pkgdir}" install
	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
